.palette {
  width: 360px;
  box-sizing: border-box;
  padding: 16px;
}
.miyue-sql-task {
  // background-image: url("/icons/mysql.png");
  background-size: 1em 1em;
  background-position: center center;
  background-repeat: no-repeat;
}
.hlxb-icon {
  display: inline-block;
  width: 48px;
  height: 68px;
  margin-bottom: 24px;
  cursor: pointer;
  background-position: center;
  background-size: 100% 100%;
}
.hlxb-sub-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-top: 16px;
  margin-bottom: 16px;
  cursor: pointer;
  background-position: center;
  background-size: 100% 100%;
}

//侧边栏配置
.djs-palette.open {
  --palette-background-color: var(--color-white);
  width: 80px !important;
  border: none;
  // box-shadow: 4px 0px 32px 0px rgba(125, 142, 164, 0.16);

  // border-radius: 8px;
  position: fixed;
  left: 0px;
  top: 69px;
  z-index: 102;
  .djs-palette-entries {
    div[class^='bpmn-icon-']:before,
    div[class*='bpmn-icon-']:before {
      line-height: unset;
    }
    div.entry {
      position: relative;
      float: none;
      line-height: 32px;
    }
    div.entry:hover {
      &::before {
        content: '';
        position: absolute;
        top: 0;
        transform: translateY(100%);
        right: -36px;
        width: 0;
        height: 0;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-right: 6px solid #fff;
        z-index: 1001;
      }
      &::after {
        width: max-content;
        content: attr(title);
        vertical-align: text-bottom;
        position: absolute;
        right: -35px;
        top: 0;
        overflow: hidden;
        transform: translateX(100%);
        font-size: 14px;
        display: inline-block;
        text-decoration: inherit;
        font-variant: normal;
        text-transform: none;
        background: #fff;
        box-shadow: 0px 4px 16px 0px rgba(125, 142, 164, 0.16);
        border: 1px solid #c0d9fe;
        box-sizing: border-box;
        padding: 0px 16px;
        border-radius: 4px;
        z-index: 100;
      }
    }

    .entry[title^='Create'] {
      display: none;
    }
    .group {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .separator {
      width: 60%;
      margin: 24px 0px;
    }

    .hlxb-icon-hand-tool {
      @extend .hlxb-sub-icon;
      background-image: url(../images/hand.png);
      &:hover {
        background-image: url(../images/hand-h.png);
      }
    }
    .hlxb-icon-space-tool {
      @extend .hlxb-sub-icon;
      background-image: url(../images/space.png);
      &:hover {
        background-image: url(../images/space-h.png);
      }
    }
    .hlxb-icon-lasso-tool {
      @extend .hlxb-sub-icon;
      background-image: url(../images/lasso.png);
      &:hover {
        background-image: url(../images/lasso-h.png);
      }
    }
    .hlxb-icon-connection-multi {
      @extend .hlxb-sub-icon;
      background-image: url(../images/connection.png);
      margin-bottom: 0px;
      &:hover {
        background-image: url(../images/connection-h.png);
      }
    }

    .hlxb-icon-start-event {
      @extend .hlxb-icon;
      background-image: url(../images/start-h.png);
      &:hover {
        background-image: url(../images/start-h.png);
      }
    }
    .hlxb-icon-gateway {
      @extend .hlxb-icon;
      background-image: url(../images/gateway-h.png);
      &:hover {
        background-image: url(../images/gateway-h.png);
      }
    }
    .hlxb-icon-user-task {
      @extend .hlxb-icon;
      background-image: url(../images/task-h.png);
      &:hover {
        background-image: url(../images/task-h.png);
      }
    }
    .hlxb-icon-end-event {
      @extend .hlxb-icon;
      margin-bottom: 16px;
      background-image: url(../images/end-h.png);
      &:hover {
        background-image: url(../images/end-h.png);
      }
    }
  }
}
pre {
  margin: 0;
  height: 100%;
  overflow: hidden;
  max-height: calc(80vh - 32px);
  overflow-y: auto;
}
.hljs {
  word-break: break-word;
  white-space: pre-wrap;
}
.hljs * {
  font-family: Consolas, Monaco, monospace;
}
